package com.acme.task2;

public class Foo {
	static int i = 0;
	
	Foo(){
		Foo.i++;
	}
	
	@Override
	protected void finalize() throws Throwable {		
		super.finalize();
		System.out.println("finalize was called on iteration " + i);
	}
}
